
$(function(){
    <!--文件上下翻页-->
    var mySwiper = new Swiper('.swiper-container',{
        grabCursor: true,
        slidesPerView: 1,
        simulateTouch:false
    })
    var totalpage=$(".swiper-slide").length;
    $("#totalPage").html(totalpage);
    $('.arrow-left').on('click', function(e){
        e.preventDefault();
        mySwiper.swipePrev();
        var index=$(".swiper-slide-active").attr("data-index");
        $("#swipePage").html(index);
    })
    $('.arrow-right').on('click', function(e){
        e.preventDefault();
        mySwiper.swipeNext();
        var index=$(".swiper-slide-active").attr("data-index");
        $("#swipePage").html(index);
    })
})

